package day2;

/**
 * @author oldliu
 * @since 1.0
 */
public class StuTestArray {
    public static void main(String[] args) {
        //学生对象
        Student st[]=new Student[20];
        st[0]=new Student();
        st[0].name="照耀.拉斯";

        Student s2=new Student();
        s2.name="谢尔盖.董新";
        st[1]=s2;

        st[1].show();
        //st[2].show();
        //int []a={1,4,7};
        Student []ar2={new Student(),new Student(),new Student(),new Student()};
        ar2[0].name="王凯旋选";
        ar2[0].math=60;
        for(Student s:ar2)
            s.show();
    }
}
